import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const models: AppRouteModule = {
  path: '/models',
  name: 'Models',
  component: LAYOUT,
  redirect: '/models/index',
  meta: {
    orderNo: 2,
    icon: 'ant-design:code-sandbox-outlined',
    title: t('routes.models.models'),
  },
  children: [
    {
      path: 'index',
      name: 'ModelsPage',
      component: () => import('@/views/models/index.vue'),
      meta: {
        title: t('routes.models.models'),
        icon: 'ant-design:code-sandbox-outlined',
        hideMenu: true,
      },
    },
  ],
};

export default models;
